package cn.vihub.client.user;

import cn.vihub.pojo.ShopUser;
import cn.vihub.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "shop-server-user", path = "/shop-user/user")
public interface UserFeignClient {

    @GetMapping("getUserByUsername/{username}")
    ShopUser getUserByUsername(@PathVariable("username") String username);

}
